<?php
namespace Users\Model;

class AdminCombinations
{
	public $combination_id;
	public $user_id;
	public $country_id;
	public $industry_id;
	public $add_combination_date;
	public $last_combination_date;
	public $countryNicename;
	public $industryNicename;
	
	public function exchangeArray($data){
	
		$this->combination_id  = (isset($data['combination_id']))    ? $data['combination_id']	: null;
		
		$this->user_id = (isset($data['user_id']))   ? $data['user_id']  : null;
		
		$this->country_id = (isset($data['country_id']))  ? $data['country_id']  : null;
		
		$this->industry_id = (isset($data['industry_id'])) ? $data['industry_id']  					 : null;
		
		$this->add_combination_date  	= (isset($data['add_combination_date']))  	? $data['add_combination_date']  : null;		

		$this->countryNicename = (isset($data['countryNicename']))? $data['countryNicename'] : null;
		$this->industryNicename = (isset($data['industryNicename']))? $data['industryNicename'] : null;

		$this->last_combination_date = (isset($data['last_combination_date']))? $data['last_combination_date'] : null;
		
	}

	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}